﻿<%@ Control Language="C#" %>
<%@ Import Namespace="Hidistro.Core" %>
<%@ Import Namespace="Hidistro.UI.SaleSystem.Tags" %>
<%@ Register TagPrefix="Hi" Namespace="Hidistro.UI.Common.Controls" Assembly="Hidistro.UI.Common.Controls" %>

<asp:Repeater ID="PList" runat="server">
    <ItemTemplate>
        <li>
            <div class="brand_story_cps_top">
                <input type="hidden" name="hidProduct" value="<%#Eval("ProductId") %>" />
                <a href="<%#Globals.GetSiteUrls().UrlData.FormatUrl("productDetails", new object[] { Eval("ProductId"), Eval("CategoryUrl") })%>" target="_blank" title="<%#Eval("ProductName")%>">
                    <img title="<%#Eval("ProductName")%>" data-original="<%#Globals.GetImgUrl(Eval("ImageUrl1")==null?"":Eval("ImageUrl1").ToString())%>" />
                    <div style="<%#Eval("CountDownId")==null?"display:none;": "display:block;"%>" id="divProduct<%#Eval("ProductId") %>">
                        <div class="brand_story_cps_top_time"></div>
                        <div class="brand_story_cps_top_time1">
                            <p>
                                <img src="http://image.juseshop.com/shopsanqi/stime.png">
                                <span class="djs" time="<%#Eval("Times")%>" id="djs<%#Eval("ProductId") %>">剩余<i>0</i>天<span>0</span>小时<b>00</b>分<strong>00</strong>秒</span>
                            </p>
                        </div>
                    </div>
                </a>
            </div>
            <div class="brand_story_cps_zhong">
                <a href="<%#Globals.GetSiteUrls().UrlData.FormatUrl("productDetails", new object[] { Eval("ProductId"), Eval("CategoryUrl") })%>" target="_blank">
                    <p><i class="pingpaiyaobiao"><%#Eval("BrandName")%></i><%#Eval("ProductName")%><em><%#Eval("ProductText")%></em></p>
                </a>
                <span><b id="Price<%#Eval("ProductId") %>">¥<%#((decimal)Eval("SalePrice")).ToString("F0")%></b>
                    <div>
                        <%#Eval("CountDownId")==null?"":"<div class=\"cu\"><img src=\"http://image.juseshop.com/shopsanqi/cu.png\"></div>" %>
                        <%#((bool)Eval("IsFreight") ||(bool)Eval("IsfreeShipping")) ?"<div class=\"baoyou\">包邮</div>":""%>
                    </div>
                    <div class="asxz"><em>已售：<i id="saleCount<%#Eval("ProductId") %>"><%#Eval("ShowSaleCounts")%></i></em>件</div>
                </span>
            </div>
            <a target="_blank" class="jiarudfb" href="http://order.x-juse.com/AddShoppingCart.aspx?productId=<%# Eval("ProductId") %>&SkuId=<%# Eval("SkuId") %>&Count=1&sdomain=http://<%=this.Page.Request.ServerVariables["HTTP_HOST"] %>&ReturnUrl=http://www.x-juse.com<%=this.Page.Request.RawUrl %>">加入购物车</a>
        </li>
    </ItemTemplate>
</asp:Repeater>
<script type="text/javascript" src="http://res.juseshop.com/js/shopsanqi/playtime.js"></script>
<script type="text/javascript" src="http://res.juseshop.com/js/shopsanqi/listtocart.js"></script>
